<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="head.jsp"%>

<!--查看信息-->
<div class="div_addresident">
  <form method="post" action="<%=request.getContextPath()%>/orderForm?type=revamp&id=${check.id}" class="addresident_form" id="redact_form">
    <p>客户信息</p>
    <div class="addresident_div">
      <span>房型:</span>
      <select name="houseTypeId" id="redact_div_select" required>
        <c:if test="${showList != null}">
          <c:forEach items="${showList}" var="show">
            <option class="redact_select_option" value="${show.id}" <c:if test="${show.id == houseTypeId}">selected</c:if>>${show.houseType}</option>
          </c:forEach>
        </c:if>
      </select>
      <span>状态:</span>
      <select name="condition" id="redact_div_select1" required>
        <option value="1" id="redact_option" <c:if test="${check.roomKeeper.condition == 1}">selected</c:if>>入住</option>
        <option value="2" id="redact_option1" <c:if test="${check.roomKeeper.condition == 2}">selected</c:if>>预约</option>
      </select>
      <span>房间号:</span>
      <select name="roomNumber" id="redact_div_select2" required>
          <option value="${check.roomNumber}" <c:if test="${check.roomNumber == roomNumber}">selected</c:if>>${check.roomNumber}</option>
      </select>
      <span>居住人数:</span>
      <select name="personNum" id="redact_div_select3" required>
        <option value="1" <c:if test="${check.personNum == 1}">selected</c:if>>1</option>
        <option value="2" <c:if test="${check.personNum == 2}">selected</c:if>>2</option>
      </select>
    </div>
    <input id="appPath" type="hidden" value="<%=request.getContextPath()%>">
    <p class="addresident_form_p">
      <span>姓名:</span>
      <input type="text" value="${check.manageName}" name="manageName" id="redact_manageName" class="form_p_input" required>
      <span id="redact_manageName_span"></span>
    </p>
    <p class="addresident_form_p">
      <span>手机号:</span>
      <input type="text" value="${check.mobilePhone}" name="mobilePhone" id="redact_mobilePhone" class="form_p_input" required>
      <span id="redact_mobilePhone_span"></span>
    </p>
    <p class="addresident_form_p">
      <span>身份证号:</span>
      <input type="text" value="${check.identityCard}" name="identityCard" id="redact_identityCard" class="form_p_input" required>
      <span id="redact_identityCard_span"></span>
    </p>
    <p class="addresident_form_p">
      <span>入住时间:</span>
      <input type="date" value="${check.checkInDate}" readonly="readonly" name="checkInDate" id="redact_checkInDate" class="form_p_input" required>
      <span id="redact_checkInDate_span"></span>
      <span>退房时间:</span>
      <input type="date" value="${check.checkOutDate}" name="checkOutDate" id="redact_checkOutDate" class="form_p_input" required>
      <span id="redact_checkOutDate_span"></span>
    </p>
    <p class="addresident_form_p">
      <span>备注:</span>
      <input type="text" value="${check.remark}" name="remark" id="redact_remark" class="form_p_input">
      <span id="redact_remark_span"></span>
    </p>
    <p class="addresident_form_p">
      <span>订单号:</span>
      <input type="text" value="${check.password}" readonly="readonly" name="password" id="redact_password" class="form_p_input" required>
      <span id="redact_password_span"></span>
    </p>
    <p class="addresident_form_p">
      <span>金额:</span>
      <input type="text" value="${check.price}" readonly="readonly" name="price" id="redact_price" class="form_p_input" required>
      <span id="redact_price_span"></span>
    </p>
    <input type="submit" class="redact_form_button" value="修改">
    <input type="reset" class="add_form_button" onclick="window.location.href='<%=request.getContextPath()%>/orderForm?type=delete&id=${check.id}&roomNumber=${check.roomNumber}'" value="删除">
    <input type="button" class="add_form_button" onclick="window.location.href='<%=request.getContextPath()%>/orderForm'" value="返回">
  </form>
</div>
</body>
</html>